home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Programming / CVS / source / lib / smakefile
Encoding:
Makefile  |  2001-02-07  |  3.6 KB  |  171 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for library files used by GNU CVS.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. # Copyright (C) 1986, 1988-1994 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. srcdir     = .
  17. top_srcdir = ..
  18. cvs_srcdir = ../src
  19.  
  20. SHELL = /bin/sh
  21.  
  22. prefix = 
  23. exec_prefix = ${prefix}
  24.  
  25. SOURCES = \
  26.     argmatch.c \
  27.     dup2.c \
  28.     fncase.c \
  29.     fnmatch.c \
  30.     ftruncate.c \
  31.     getdate.c \
  32.     getdate.y \
  33.     getline.c \
  34.     getopt.c \
  35.     getopt1.c \
  36.     hostname.c \
  37.     md5.c \
  38.     memmove.c \
  39.     mkdir.c \
  40.     regex.c \
  41.     rename.c \
  42.     savecwd.c \
  43.     sighandle.c \
  44.     strstr.c \
  45.     strerror.c \
  46.     stripslash.c \
  47.     strtoul.c \
  48.     valloc.c \
  49.     waitpid.c \
  50.     xgetwd.c \
  51.     yesno.c
  52.  
  53. HEADERS = getline.h getopt.h fnmatch.h regex.h system.h wait.h md5.h savecwd.h
  54.  
  55. # Always use CVS's regular expression matcher regex.o, because of
  56. # variations in regular expression syntax - we want to be the same
  57. # across systems and (probably) compared with old versions of CVS too.
  58. #
  59. # On a more mundane/detail level, having regex.h match regex.c can be
  60. # an issue if we aren't careful.
  61. #
  62. # Also should look into unifying regular expression matching in CVS
  63. # with the diff library (perhaps to have the caller, CVS, do the
  64. # matching?)
  65. OBJECTS = \
  66.      \
  67.     argmatch.o \
  68.     getline.o \
  69.     getopt.o \
  70.     getopt1.o \
  71.     md5.o \
  72.     regex.o \
  73.     savecwd.o \
  74.     stripslash.o \
  75.     xgetwd.o \
  76.     yesno.o \
  77.     sighandle.o \
  78.     getdate.o \
  79.     fnmatch.o
  80.  
  81. DISTFILES = \
  82.     .cvsignore ChangeLog ChangeLog.fsf Makefile.in \
  83.     ${SOURCES} ${HEADERS} build_lib.com
  84.  
  85. DEFS = define=HAVE_CONFIG_H
  86. RANLIB =
  87.  
  88. CC       = sc
  89. CFLAGS = utillib cpu=any utillib structureequivalence stringmerge nostackcheck \
  90.          optimize opttime optschedule debug=line
  91. CPPFLAGS=
  92.  
  93. YACC = bison -y
  94.  
  95. .c.o:
  96.     $(CC) $(CPPFLAGS) idir="/" idir="/lib" idir="/src" idir="/amiga/include" idir="/amiga" idir="/amiga/netinclude" \
  97.               $(DEFS) $(CFLAGS) $<
  98.  
  99. all: cvs.lib
  100. .PHONY: all
  101.  
  102. install: all
  103. .PHONY: install
  104.  
  105. installdirs:
  106. .PHONY: installdirs
  107.  
  108. tags: $(DISTFILES)
  109.     ctags `for i in $(DISTFILES); do echo $(srcdir)/$$i; done`
  110.  
  111. TAGS: $(DISTFILES)
  112.     etags `for i in $(DISTFILES); do echo $(srcdir)/$$i; done`
  113.  
  114. ls:
  115.     @echo $(DISTFILES)
  116. .PHONY: ls
  117.  
  118. clean:
  119.     rm -f *.a *.o
  120. .PHONY: clean
  121.  
  122. distclean: clean
  123.     rm -f tags TAGS Makefile
  124. .PHONY: distclean
  125.  
  126. realclean: distclean
  127.     rm -f *.tab.c getdate.c
  128. .PHONY: realclean
  129.  
  130. dist-dir:
  131.     mkdir ${DISTDIR}
  132.     for i in ${DISTFILES}; do \
  133.       ln $(srcdir)/$${i} ${DISTDIR}; \
  134.     done
  135. .PHONY: dist-dir
  136.  
  137. cvs.lib : $(OBJECTS)
  138.     -delete $@ quiet
  139.     oml $@ r $(OBJECTS)
  140.  
  141. getdate.c: getdate.y
  142.     @echo expect 10 shift/reduce conflicts
  143.     $(YACC) $(srcdir)/getdate.y
  144.     -@if test -f y.tab.c; then \
  145.        mv y.tab.c getdate.c ;\
  146.     else \
  147.        if test -f getdate.tab.c ; then \
  148.            mv getdate.tab.c getdate.c ; \
  149.        else \
  150.            echo '*** Unable to create getdate.c' ;\
  151.        fi ;\
  152.     fi
  153.  
  154. fnmatch.o: fnmatch.h
  155. getopt1.o: getopt.h
  156. regex.o: regex.h
  157. md5.o: md5.h
  158.  
  159. xlint:
  160.     @echo xlint does nothing
  161.  
  162. subdir = lib
  163. Makefile: ../config.status Makefile.in
  164.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  165.  
  166. #../config.status: ../configure
  167. #    cd .. ; $(SHELL) config.status --recheck
  168.  
  169. #../configure: ../configure.in
  170. #    cd $(top_srcdir) ; autoconf
  171.